package com.fhz.shop.ui.home.datasource;

import androidx.lifecycle.LiveData;

import com.fhz.shop.api.ServiceApi;
import com.fhz.shop.callback.ApiResponse;
import com.fhz.shop.entity.GoodsInfoLocal;
import com.fhz.shop.entity.PageHelper;

import java.util.List;

import javax.inject.Inject;

/**
 * 时间:2023/8/22
 *
 * @author Mr.Feng
 * 简述: TODO
 */
public class HomeRemoteDataSource {

    @Inject
    ServiceApi mServiceApi;

    @Inject
    public HomeRemoteDataSource() {
    }

    public  LiveData<ApiResponse<PageHelper<GoodsInfoLocal>>> getGoodsInfo(int page, int pageSize){
       return mServiceApi.getGoodsInfo(page, pageSize);
    }
}
